<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        #l{
            color: green;
        }

        .z{
            color: yellow;
        }

        body>div>div>p{
            color: pink;
        }

        body>p{
            background-color: yellow;
        }
        input[type = "text"]{
            background-color: yellow;
        }
        input[type = 'password']{
            background-color: yellow;
        }

        *{border: 1px solid red}

        a:link {
            color: green;
        }
        a:visited {
            color: red;
        }
    </style>
</head>
<body>

<ul>
    <li>刘备</li>
    <li id="l">关羽</li>
    <li class="z">张飞</li>
</ul>
<p>香蕉</p>
<p class="z">苹果</p>
<input type="text">
<input type="password">
<div>
    <p>p1</p>
    <div><p>p2</p></div>
    <div>
        <div>p3</div>
    </div>
</div>
<a href="http://www.tedu.cn">达内官网</a>

</body>
</html>